import { constantRoutes } from '@/router/index'
const state = {
  routers: [...constantRoutes]
}

const mutations = {
  setRouters(state, filteredRoters) {
    state.routers = [...constantRoutes, ...filteredRoters]
  }
}

export default {
  namespaced: true,
  state,
  mutations
}
